package cn.wolfcode.service;

import cn.wolfcode.domain.Employee;

import cn.wolfcode.query.EmployeeQueryObject;
import com.github.pagehelper.PageInfo;
import org.apache.poi.ss.usermodel.Workbook;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface IEmployeeService {

    int deleteByPrimaryKey(Long id);

    int insert(Employee record);

    Employee selectByPrimaryKey(Long id);

    List<Employee> selectAll();

    int updateByPrimaryKey(Employee record);

    PageInfo<Employee> listpage(EmployeeQueryObject qo);

    Employee selectUser(String username, String password);

    void batchDelete(Long[] ids);

    Employee selectByName(String name);

    Workbook exportXls();

    Workbook employeeImport();

    void importXls(MultipartFile file) throws IOException;

    List<Employee> selectSeller(List<String> roleList);
}
